import request from '@/utils/request.js'
// 登录
export const loginApi = (data) => {
  return request({
    url: '/sys/login',
    method: 'POST',
    data
  })
}
// 获取用户基本信息
export const getUserInfo = () => {
  return request({
    url: '/sys/profile',
    method: 'POST'
  })
}
// 获取员工基本信息
export const getUserDetailById = (id) => {
  return request({
    url: `/sys/user/${id}`,
    method: 'get'
  })
}
// 获取用户详细信息
export const getUserDetail = (id) => request.get(`/sys/user/${id}`)

